package com.song.util;

import java.util.regex.Pattern;

/**
 * @author TonySong
 * @date 2024/6/6 0006
 * @time 15:18
 */
public class PatternUtil {
    private static  final Pattern chinese = Pattern.compile("[\u4e00-\u9fa5]{2,}");

    public static boolean isChinese(String str){
        return chinese.matcher(str).matches();
    }
}
